Skip to content

Fix deadlock in discovery sample#795

Merged
sfod merged 5 commits into
mainfrom
fix-basic-discovery
Apr 22, 2025
Merged

Fix deadlock in discovery sample#795
sfod merged 5 commits into
mainfrom
fix-basic-discovery

Conversation

@sfod
Copy link
Copy Markdown
Contributor

@sfod sfod commented Apr 21, 2025

Issue #, if available:

The Greengrass basic discovery sample sometimes deadlock on attempting to establish an MQTT connection.

Description of changes:

Remove waiting on a promise from a callback executed by the event loop.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment thread samples/greengrass/basic_discovery/main.cpp Outdated
Comment thread samples/greengrass/basic_discovery/main.cpp
@sfod sfod merged commit e0b54c1 into main Apr 22, 2025
41 checks passed
@sfod sfod deleted the fix-basic-discovery branch April 22, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants